package bg.unisofia.fmi.tis.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="t_notification")
public class Notification extends Identity {
	private User forUser;
	private Thesis forThesis;
	
	public Notification() {}
	
	public Notification(User forUser, Thesis forThesis) {
		this.forUser = forUser;
		this.forThesis = forThesis;
	}
	
	@ManyToOne
	@JoinColumn(name="user_id")
	public User getForUser() {
		return forUser;
	}
	public void setForUser(User forUser) {
		this.forUser = forUser;
	}
	
	@ManyToOne
	@JoinColumn(name="thesis_id")
	public Thesis getForThesis() {
		return forThesis;
	}
	public void setForThesis(Thesis forThesis) {
		this.forThesis = forThesis;
	}
}
